package dshop.model.company;

import java.util.Date;

import com.jfinal.plugin.activerecord.Db;

import appbase.jfinal.ext.BaseModel;

public class CompanyAuthentication extends BaseModel<CompanyAuthentication> {

	private static final long serialVersionUID = -6967680902549117464L;

	public static final CompanyAuthentication dao = new CompanyAuthentication();

	public static void setCheckStatus(int accountId, String checkStatus, String checkStatusExplain) {
		new CompanyAuthentication().set("check_status", checkStatus).set("check_status_explain", checkStatusExplain)
				.set("check_date_time", new Date()).set("account_id", accountId).update();
	}
	public static void updateOperator(String operator,int accountId) {
		Db.update("update company_authentication set operator = ? , operator_time = now() where account_id = ?",operator,accountId);
	}
}
